package com.tanhua.sso.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "comment")
public class Comment implements Serializable {
    private ObjectId id;
    private ObjectId publishId;  //发布id
    private Integer commentType;  //评论类型，1-点赞，2-评论，3-喜欢
    private String content;  //评论内容
    private Long userId;   //评论者id
    private Long publishUserId;  //被评论者的id
    private Long created; //发表时间
    private Integer likeCount=0;  //当前评论的点赞数
}
